#include "s3c2440_soc.h"
#include "uart.h"
#include "my_printf.h"
#include "init.h"
#include "led.h"

int main()
{

    unsigned char c;
    uart0_init();
    puts("Enter the tacc val:  \n\r");
    
    /* my_printf_test(); */
    
    while(1){
	c = getchar();
	putchar(c);

	if (c >= '0' && c <= '7') {
	    bank0_tacc_set(c - '0');
	    led_on();
	} else {
	    puts("Error! val should between 0~7 \n\r");
	    puts("Enter the tacc val:  \n\r");
	}

	/* if (c == '\r') { */
	    /* putchar('\n'); */
	/* } */

	/* if (c == '\n') { */
	    /* putchar('\r');    */
	/* } */
    }
    return 0;
}
